package cs3343.project.family;
import javax.swing.*;

import java.awt.*;
import java.awt.event.*;

public class EndGame {
	
	JFrame f = new JFrame("Thanks for playing the game");
	//public Start(JFrame frame, Container contentPane, JPanel panel){
	public EndGame(){

		Container contentPane = f.getContentPane();
		
		JPanel panel = new JPanel();
		JLabel endImg = new JLabel(new ImageIcon(ConfigManager.IMAGE_PATH + "end.jpg"));
		panel.add(endImg);
		/********  Add all item to Panel   ********/
		contentPane.add(panel);
		f.setVisible(true);
		f.pack();
		f.show();
		f.setSize(495, 333);
		f.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent e){ System.exit(0); }});
	}
}